// bluebcastDlg.h : header file
//

#pragma once

extern "C" {
#include "Btsdk_ui.h"
}

// CbluebcastDlg dialog
class CbluebcastDlg : public CDialog
{
// Construction
public:
	CbluebcastDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_BLUEBCAST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	bool InitBluetooth();
	void ExitBluetooth();
	static UINT InitBluetoothProc(void* arg);
	static void InitBluetoothComplete(bool bComplete);
	static void RegBluetoothEvent();
	static void UnregBluetoothEvent();
	static void bt_event_status_change(ULONG msMsgType, ULONG pulData, ULONG param, BTUINT8 *arg);
	static void bt_ind_inquiry_result(BTDEVHDL device_handle);
	static void bt_ind_inquiry_complete();
	static void bt_ind_connection_event(BTCONNHDL connection_handle, BTUINT16 *event, BTUINT8 *arg);
	static BTUINT8 bt_ind_pin_code(BTDEVHDL device_handle);
	static BTUINT8 bt_ind_authorization(BTSVCHDL svc_handle, BTDEVHDL device_handle);
	static void bt_ind_link_key_notif(BTDEVHDL device_handle, BTUINT8 *link_key);
	static void bt_ind_authentication_fail(BTDEVHDL device_handle);


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
};
